package com.example.openguass.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.openguass.entity.Dish;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.openguass.vo.DishPageVO;
import com.example.openguass.vo.DishVO;
import com.example.openguass.vo.MenuDishVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xa
 * @since 2022-11-17
 */
public interface DishService extends IService<Dish> {
    Boolean setNullByCategoryId(String categoryId);

    Boolean exit(DishVO dishVO);

    Boolean insert(DishVO dishVO);

    Boolean update(DishVO dishVO);

    IPage<Dish> findPage(DishPageVO pageVO);

    List<MenuDishVO> getByCategory(String categoryName);
}
